The variable $textArea seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.$textArea.
Loading history...
19
let message = 'There was an error in the WYSIWYG editor. You will be redirected to the syntax editor in 5 seconds.';
The variable message seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.message.
Loading history...
20
if (window.SentryPlugin) {
21
SentryPlugin.logSentryException(e, {
22
tags: {
23
plugin: 'prosemirror',
24
'id': JSINFO.id,
25
},
26
extra: {
27
'content': $textArea.val(),
28
}
29
});
30
message += ' The error has been logged to sentry.';
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.